import request from '@/utils/request'

// 查询STEM课程列表
export function listStemCourse(query) {
  return request({
    url: '/stemCourse/stemCourse/list',
    method: 'get',
    params: query
  })
}

// 查询STEM课程详细
export function getStemCourse(courseId) {
  return request({
    url: '/stemCourse/stemCourse/' + courseId,
    method: 'get'
  })
}

// 新增STEM课程
export function addStemCourse(data) {
  return request({
    url: '/stemCourse/stemCourse',
    method: 'post',
    data: data
  })
}

// 修改STEM课程
export function updateStemCourse(data) {
  return request({
    url: '/stemCourse/stemCourse',
    method: 'put',
    data: data
  })
}

// 删除STEM课程
export function delStemCourse(courseId) {
  return request({
    url: '/stemCourse/stemCourse/' + courseId,
    method: 'delete'
  })
}
// 查询课程结构下拉树结构
export function stemCourseConTreeSelect() {
  return request({
    url: '/stemCourse/stemCourse/stemCourseConTree',
    method: 'get'
  })
}
